/**
 * 
 */
package com.mc.hutool;

import cn.hutool.core.util.DesensitizedUtil;
import cn.hutool.core.util.StrUtil;

/**
 * @author w.weizhen
 *
 */
public class DesensitizedUtilTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		
//		System.out.println(DesensitizedUtil.idCardNum(null, 4, 14));
//		System.out.println(DesensitizedUtil.idCardNum("51343620000320711X", 4, 4));
//		System.out.println(DesensitizedUtil.mobilePhone("18049531999"));
//		System.out.println(DesensitizedUtil.password("1234567890"));
		
//		System.out.println(StrUtil.hide("51343620000320711X", 4, 24));
//		System.out.println(StrUtil.hide(null, 4, 14));
		
//		DesensitizedUtil.fixedPhone("");
//		
//		DesensitizedUtil.bankCard("");
//		
//		DesensitizedUtil.fixedPhone(null);
		
		System.out.println(DesensitizedUtil.desensitized("北京市海淀区马连洼街道289号", DesensitizedUtil.DesensitizedType.ADDRESS));
		
		
	}

}
